set more off
clear

do set_path.do

***** Fig A3: Govt. CIP Tariff Episode *****

use "${datadir}cip_all_both", clear

keep if date>=mdy(1,1,2025) & date<=mdy(7,31,2025)

levelsof currency if group=="g10"
foreach curr in `r(levels)' {
	twoway (tsline cip_govt if currency=="`curr'" & tenor=="10y", cmissing(yes) lwidth(medium) lcolor(red)), ///
		ylabel(,labsize(small) nogrid) xlabel(,labsize(small) format(%td) nogrid) xtitle("") ytitle("") legend(off)  ///
		tline(02apr2025, lcolor(black) lpattern(dash)) ///
		subtitle(, size(small) ring(0) pos(1) nobexpand) ///
		plotregion(lstyle(none)) ///
		note("") legend(pos(6) rows(1) size(small)) name("g10_`curr'_10y", replace) title("`curr'", size(medium))
}

graph combine g10_AUD_10y g10_CAD_10y g10_CHF_10y g10_DKK_10y g10_EUR_10y g10_GBP_10y g10_JPY_10y g10_NOK_10y g10_NZD_10y g10_SEK_10y, cols(3) rows(4)
graph export "${outdir}figures/tariffs_10y.pdf", replace

graph close _all
